package com.aqie.demo.cyclic_dependency;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
//@Scope(BeanDefinition.SCOPE_PROTOTYPE)
public class QinyiJavaService {

    /*private final ImoocCourseService courseService;

    @Autowired
    public QinyiJavaService(ImoocCourseService courseService) {
        this.courseService = courseService;
    }*/

    // Field
    @Autowired
    private ImoocCourseService courseService;

    public void qinyiJava() {
        System.out.println("QinyiJavaService");
    }
}
